const state = () => ({
    blogColor: '#fff',//主页设置中博客背景颜色
    blogBgImg: '',//主页设置中博客展示背景图
    viewBgImg: '',////主页设置中主页背景图
    blogFontColor: true,//主页设置中博客字体颜色模式，true白色，false黑色
    fixedHeader:false,
    sidebarLogo:false,
})

const getters={
    getBlogColor(state){
        return state.blogColor;
    }
}

const mutations = {
    setBlogColor(state, color) {
        state.blogColor = color;
    },
    setBlogBgImg(state, path) {
        state.blogBgImg = path;
    },
    setBlogFontColor(state, fontColor) {
        state.blogFontColor = fontColor;
    },
    setAllState(state,allState){
        // state={...state,...allState}
        state={...allState,...state}
    }
}

export default {
    state,
    mutations,
    getters,
}